package com.lmk.ms.common.dto.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@Schema(description = "基础的数据对象")
public class DataItem {
    @Schema(description = "代码")
    private String code;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "值")
    private Object value;

    public DataItem(String name, Object value) {
        this.name = name;
        this.value = value;
    }

    public DataItem(String code, String name, Object value) {
        this.code = code;
        this.name = name;
        this.value = value;
    }
}
